Determine if one value is greater than another with the > operator.
def greater_than(val1, val2):
result = val1 > val2
return result
Function Call | Return Value | |||
---|---|---|---|---|
greater_than(4, 6) | → | |||
greater_than(8, 12) | → | |||
greater_than(19, 19) | → | |||
greater_than(12, 8) | → | |||
greater_than(11, 28) | → |
Experiment with this code on Gitpod.io